/**
 * @file bsp_aht21_reg.h
 * @author liufeng (liufeng@injoinic.com)
 * @brief the address and cmd defination of AHT21.
 * @version 0.1
 * @date 2024-10-28
 *
 * @copyright Copyright (c) 2024  injoinic
 *
 */

#ifndef __BSP_AHT21_REG_H__
#define __BSP_AHT21_REG_H__

#define AHT21_SLAVE_ADDR         0x70 // AHT21 slave address, shifted(0x0111000x)

#define AHT21_CMD_GET_STATUS     0x71 // AHT21 get status cmd
#define AHT21_STATE_IDLE         0x0
#define AHT21_STATE_BUSY         0x1

#define AHT21_CMD_TRIG_MEASURE   0xAC // AHT21 trig a measurement cmd
#define AHT21_TRIG_MEASURE_PARA1 0x33 // trig a measurement cmd parameter1
#define AHT21_TRIG_MEASURE_PARA2 0x0  // trig a measurement cmd parameter2

#endif                                /* __BSP_AHT21_REG_H__ */
